import xyRequest from '../utils/request'
import { ILoginType } from './types'

/**
 * 登录
 */
export const login = (data: ILoginType) => {
  return xyRequest.request({
    url: '/login',
    data,
    method: 'post'
  })
}
